import Vue from "vue"
import Vuex from 'vuex';
Vue.use(Vuex);
const store = new Vuex.Store({
	state: {
		traffic: uni.getStorageSync('traffic') || false,
		waitOrder: false,
		serviceTel: "037167919211"
	},
	mutations: {
		change(state){
			state.traffic = uni.getStorageSync('traffic') || false;
		},
		waitChange(state,value){
			state.waitOrder = value;
		},
		changeTel(state,value){
			state.serviceTel = value;
		}
	}
})
export default store
